﻿{include file="public/header"}
<title>需求列表</title>
</head>
<body>
<nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i> 首页
    <span class="c-gray en">&gt;</span> 客户管理
    <span class="c-gray en">&gt;</span> 预约列表
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>
<div class="page-container">
    <form method="get">
        <div class="ch-c">
            <input type="text" name="customers_id" placeholder="客户帐号" class="ch-form-assignor">
            <input type="text" name="order_no" placeholder="订单号查询" class="ch-form-assignor">
            <input type="hidden" name="type"  value="{$ta}">
            <button class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
        </div>
    </form>
    <div class="mt-20">
        <div class="title-border">
            <div class="flex1">序号</div>
            <div class="flex2">帐号</div>
            <div class="flex2"<?php if($ta==1 || $ta==3){ ?>style="display: none" <?php } ?>>订单号</div>
            <div class="flex2">流水订单号</div>
            <div class="flex1">金额</div>
            <div class="flex1">支付方式</div>
            <div class="flex1"<?php if($ta==1 || $ta==3){ ?>style="display: none" <?php } ?> >优惠券</div>
            <!--<div class="flex2"<?php if($ta==1 || $ta==3){ ?>style="display: none" <?php } ?> >支付款项</div>-->
            <div class="flex2">创建时间</div>
            <div class="flex2">成功时间</div>
            <div class="flex1">状态</div>
        </div>
        {volist name='data' id='vo'}
        <div class="title-border">
            <div class="flex1">{$vo.recharge_id}</div>
            <div class="flex2">{$vo.customers_id}</div>
            <div class="flex2"<?php if($ta==1 || $ta==3){ ?>style="display: none" <?php } ?>>{$vo.order_no}</div>
            <div class="flex2">{$vo.order_nos}</div>
            <div class="flex1" style="color: red">{$vo.money}</div>
            <div class="flex1">{$vo.mode}</div>
            <div class="flex1"<?php if($ta==1 || $ta==3){ ?>style="display: none" <?php } ?> >{$vo.youhui_id}</div>
            <!--<div class="flex2"<?php if($ta==1 || $ta==3){ ?>style="display: none" <?php } ?> >{$vo.project}</div>-->
            <div class="flex2"><?php if(!empty($vo['created_time'])){?> {:date('Y-m-d H:i:s',$vo.created_time)}  <?php } ?></div>
            <div class="flex2"><?php if(!empty($vo['last_login_time'])){?> {:date('Y-m-d H:i:s',$vo.last_login_time)}  <?php }else{ ?>暂无<?php } ?></div>
            <div class="flex1" style="color: red">{$vo.status}</div>
        </div>
        {/volist}
        <div class="pages" style="float: right">{$data->render()}</div>

    </div>
</div>

{include file="public/footer"}
<script type="text/javascript">
    $('.edit').click(function () {
        var id=$(this).attr('data-id');
        var src="{:Url('index/Customer/edits')}";
        layer.open({
            type: 2,
            area: ['60%', '80%'],
            fix: false,
            maxmin: true,
            shade:0.4,
            title: '咨询处理',
            content: src+'?customer_id='+id
        });
    });

</script>
</body>
</html>